@securitySchedule
Feature: Security schedule and timesheet Management
File name: securityScheculeAndTimehseet.feature
Relative path: features/securityScheculeAndTimehseet.feature
@securitySchedule
Scenario: Create security schedule, Create timesheet, verify functionalities and validations
Given
Security management user logged into the application
When
User navigates to security schedule page
When
User selects date, shift and clicks GO button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
User should see success message for security schedule
Then
click on view different schedule button
Then
Select 2nd shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
click on view different schedule button
Then
Select 3RD shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
copy the rolling code from the schedule
Then
user click on logout button
Then
Security sergeant user logged into the application
Then
Open the timesheet menu
locator.click: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for getByRole('row', { name: '1 1ST 06:00 16:00 Acosta,' }).getByRole('spinbutton').first()
============================================================
at SecuritySchedulePage.(anonymous) (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:499:148)
at step (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:14:53)
at C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:8:71
at __awaiter (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:4:12)
at SecuritySchedulePage.enterWrongTimesheetHours (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:495:16)
at World.(anonymous) (C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:194:59)
at step (C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:14:53)
at C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:8:71
at __awaiter (C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:4:12)
at World.(anonymous) (C:\SOTA-AUTOMATION\src\test\steps\securitySchedule.steps.ts:191:12)
Then
Enter correct ST and OT hr.
Then
user click on logout button
Then
Security management user logged into the application
Then
Open the timesheet menu on security management user
// With Callbacks
Then (/^Open the timesheet menu on security management user$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
Then (/^Open the timesheet menu on security management user$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});